﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Windows.Forms;
using CRMAdapter.PaymentHubServices;


namespace CRMWeb.Pages.AM
{
    public partial class AddPayment : CRMWeb.Utilities.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnPayment_Click(object sender, EventArgs e)
        {


            CRMAdapter.PayByPaymentHub.AddPayments(txtDigitalKeyPayment.Text, "", "", txtSysRefPayment.Text, txtPayRefPayment.Text, txtPayAmtInCentsPayment.Text, txtDebitDatePayment.Text, txtUsrNamePayment.Text);
            ClearAll();

            
        }

        //Method to clear all fields
        public void ClearAll()
        {
            txtDigitalKeyPayment.Text = "";
            txtSysRefPayment.Text = "";
            txtPayRefPayment.Text = "";
            txtPayAmtInCentsPayment.Text = "";
            txtDebitDatePayment.Text = "";
            txtUsrNamePayment.Text = "";
        }


    }
}